import request from '@/utils/request'
function getUrl(url) { return '/api/' + url }

//添加火情信息
export function addInFireInfo(data) {
    return request({
        url: getUrl("admin/fireInfo/addInFireInfo"),
        method: 'post',
        data
    })
}

//更新火情信息
export function updateInFireInfo(data) {
    return request({
        url: getUrl("admin/fireInfo/updateInFireInfo"),
        method: 'post',
        data
    })
}


export function deleteInFireInfo(data) {
    return request({
        url: getUrl("admin/fireInfo/deleteInFireInfo"),
        method: 'post',
        data
    })
}


//获取火情信息数据 getInFireInfoVo
export function getInFireInfoVo(data) {
    return request({
        url: getUrl("admin/fireInfo/getInFireInfoVo"),
        method: 'post',
        data
    })
}

//获取火情信息数据 getInFireInfoVo
export function getFireInfo(data) {
    return request({
        url: getUrl("admin/rtc/getFireInfo"),
        method: 'post',
        data
    })
}

export function distributionPerson(data) {
    return request({
        url: getUrl("admin/fireInfo/distributionPerson"),
        method: 'post',
        data
    })
}
